home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gnat1792.zip / gnat179b / t-adainc / s-taprob.ads < prev    next >
Text File  |  1994-05-19  |  4KB  |  106 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --      S Y S T E M . T A S K I N G . P R O T E C T E D _ O B J E C T S     --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.6 $                             --
  10. --                                                                          --
  11. --           Copyright (c) 1991,1992,1993, FSU, All Rights Reserved         --
  12. --                                                                          --
  13. --  GNARL is free software; you can redistribute it and/or modify it  under --
  14. --  terms  of  the  GNU  Library General Public License as published by the --
  15. --  Free Software Foundation; either version 2,  or (at  your  option)  any --
  16. --  later  version.   GNARL is distributed in the hope that it will be use- --
  17. --  ful, but but WITHOUT ANY WARRANTY; without even the implied warranty of --
  18. --  MERCHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. --  eral Library Public License for more details.  You should have received --
  20. --  a  copy of the GNU Library General Public License along with GNARL; see --
  21. --  file COPYING. If not, write to the Free Software Foundation,  675  Mass --
  22. --  Ave, Cambridge, MA 02139, USA.                                          --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26.  
  27. package System.Tasking.Protected_Objects is
  28.    --  This interface is described in the document
  29.    --  Gnu Ada Runtime Library Interface (GNARLI).
  30.  
  31.    procedure Initialize_Protection
  32.      (Object           : Protection_Access;
  33.       Ceiling_Priority : Integer);
  34.  
  35.    procedure Finalize_Protection
  36.      (Object : Protection_Access);
  37.  
  38.    procedure Lock
  39.      (Object : Protection_Access);
  40.  
  41.    procedure Lock_Read_Only
  42.      (Object : Protection_Access);
  43.  
  44.    procedure Unlock
  45.      (Object : Protection_Access);
  46.  
  47.    procedure Protected_Entry_Call
  48.      (Object    : Protection_Access;
  49.       E         : Protected_Entry_Index;
  50.       Uninterpreted_Data : System.Address;
  51.       Mode      : Call_Modes;
  52.       Block     : out Communication_Block);
  53.  
  54.    procedure Wait_For_Completion
  55.      (Call_Cancelled : out Boolean;
  56.       Block          : in out Communication_Block);
  57.  
  58.    procedure Cancel_Protected_Entry_Call
  59.      (Call_Cancelled : out Boolean;
  60.       Block          : in out Communication_Block);
  61.  
  62.    procedure Wait_Until_Abortable (Block : in out Communication_Block);
  63.  
  64.    procedure Next_Entry_Call
  65.      (Object    : Protection_Access;
  66.       Barriers  : Barrier_Vector;
  67.       Uninterpreted_Data : out System.Address;
  68.       E         : out Protected_Entry_Index);
  69.  
  70.    procedure Complete_Entry_Body
  71.      (Object           : Protection_Access;
  72.       Pending_Serviced : out Boolean);
  73.  
  74.    procedure Exceptional_Complete_Entry_Body
  75.      (Object           : Protection_Access;
  76.       Pending_Serviced : out Boolean;
  77.       Ex               : Exception_ID);
  78.  
  79.    procedure Requeue_Protected_Entry
  80.      (Object     : Protection_Access;
  81.       New_Object : Protection_Access;
  82.       E          : Protected_Entry_Index;
  83.       With_Abort : Boolean);
  84.  
  85.    procedure Requeue_Task_To_Protected_Entry
  86.      (New_Object : Protection_Access;
  87.       E          : Protected_Entry_Index;
  88.       With_Abort : Boolean);
  89.  
  90.    function Protected_Count
  91.      (Object : Protection;
  92.       E      : Protected_Entry_Index)
  93.       return   Natural;
  94.  
  95.    procedure Broadcast_Program_Error
  96.      (Object : Protection_Access);
  97.  
  98.    procedure Raise_Pending_Exception
  99.      (Block : Communication_Block);
  100.  
  101.    procedure Check_Exception;
  102.    --  Raises an exception pending on Self.
  103.    --  Used to delay exceptions until abortion is undeferred during rendezvous.
  104.  
  105. end System.Tasking.Protected_Objects;
  106.